home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 2
/
Apprentice-Release2.iso
/
Source Code
/
Libraries
/
VideoToolbox 94.11.17
/
VideoToolboxSources
/
Exponential.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-08-01
|
299 b
|
15 lines
|
[
TEXT/KAHL
]
/* Exponential.c
Routines related to the exponential probability distribution.
Also see: Binomial.c, ChiSquare.c, Normal.c, Uniform.c
*/
#include <math.h>
double ExponentialPdf(double x);
double ExponentialPdf(double x)
// Mean and variance are 1.
{
if(x<0.0)return 0.0;
else return exp(-x);
}